package com.flyan.game.motafx.core.map;

import com.almasb.fxgl.entity.Entity;
import com.flyan.game.motafx.core.enums.EntityTypeEnum;

/**
 * 地图位置实体信息
 *
 * @author flyan
 * @version 1.0
 * @email flyan_by_chenu@sina.com
 * @since 2025/2/5
 */
public class MapPositionEntityInfo {

    private final Entity[] entities;

    public MapPositionEntityInfo(Entity[] entities) {
        this.entities = entities;
    }

    public Entity getByZIndex(int zIndex) {
        return entities[zIndex];
    }

}
